#include <QHBoxLayout>

#include "vchatinterface.h"
#include "vcontactlistbox.h"
#include "vdialogbox.h"
VChatInterface::VChatInterface(QWidget* parent)
    : QWidget(parent)
    , m_pContactListBox(new VContactListBox(this))
    , m_pDialogBox(new VDialogBox(this))
    , m_pHBoxLayout(new QHBoxLayout(this))
{
    setAttribute(Qt::WA_StyledBackground, true);//默认Qwidget类 无法设置颜色
    setStyleSheet(R"(
        VChatInterface
        {
            background-color: #F5F5F5; 
        }
     )");
    m_pHBoxLayout->setSpacing(0);
    m_pHBoxLayout->setContentsMargins(0, 0, 0, 0);
    m_pHBoxLayout->addWidget(m_pContactListBox);
    m_pHBoxLayout->addWidget(m_pDialogBox);
}

VChatInterface::~VChatInterface()
{}